package pers.twf.twfRpc.serializer;

import java.io.IOException;

/**
 * 序列化器
 */
public interface Serializer {
    <T> byte[] serialize(T obj)throws IOException;
    <T> T deserialize(byte[] bytes,Class<T> clazz) throws IOException;



}
